home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
workbench
/
libs
/
bignum_37_28.lha
/
BigNum
/
BigNum.doc
Wrap
Text File
|
1997-02-12
|
3KB
|
87 lines
___ _ _ _ _
| _ |_)__ _ _ _ _ _ _ __ | (_) |__ _ _ __ _ _ _ _ _
| _ \ / _` | ' \ || | ' \ | | | '_ \ '_/ _` | '_| || |
|___/_\__, |_||_\_,_|_|_|_| |_|_|_.__/_| \__,_|_| \_, |
|___/ © Allenbrand Brice |__/ 37.28
----------------------------------------------------------------------
THE multiprecision integer library !
This library is EMailWare
EMail: allenbrand@nucleus.fr
If you have suggestions I'd be happy to answer them.
----------------------------------------------------------------------
This package contains the library and the protos for C programming.
YOU MUST HAVE AT LEAST A 68020 AND ENOUGH RAM OR THE LIBRARY WON'T OPEN !!
*)BigNum.library has been written using SAS/6.57. It takes advantage of
the Amiga system for maximum efficiency.
*)All overflows or division by 0 are managed by the library. (Hope so...)
*)It is easy to Use (yes yes)
*)No Enforcer hits (sure)
----------------------------------------------------------------------
Now there are two versions :
Big
---
*)A BigNum is limited to 450000 digits and the library will need 10 Mo RAM
*)The library will manage 50 BigNums at a time. All the allocations are
made during the opening of the library for speed-up efficiency.
Small
-----
*)A BigNum is limited to 130000 digits and the library will need 3 Mo RAM
*)The library will manage 50 BigNums at a time. All the allocations are
made during the opening of the library for speed-up efficiency.
----------------------------------------------------------------------
USAGE :
1) #include <proto/BigNum.h>
2) struct Library *BigNumBase;
3) At first, open the library with the common way.
4) Then declare your BigNum : PtrBigNum x,y,z,u,i,op......
5) Then INITIALIZE THEM : x=BigNumInit();y=BigNumInit()....
6) Make your computations......
.....
......
.....
7) After using, FREE THEM or you'll have warning message when you close
the library. If you forget it, this won't crash the machine or lose
memory, but it is an efficient way to know what if what you've done is
right
e.g if you Init 5 BigNums then call BigNumFree(5);
8) Close the library or you'll lose memory.
Have a look at examples....
----------------------------------------------------------------------
What's New :
AmigaGuide documentation
No more 040 and 060 versions.
Tiny bug removed.
Enabled fast code for multiplication.
Added BigNumSquare